/*
 * @Description: 
 * @Autor: kaikaima
 * @Date: 2021-03-12 15:09:05
 * @LastEditors: kaikaima
 * @LastEditTime: 2021-04-07 11:37:50
 */

#include<iostream>

int N=100;

int main(int argc, char* argv[]){
    double B[N];
    for(int i=0;i<N;i++)
        std::cin>>B[i];
    std::cout<<N<<std::endl;
    for(int i=0;i<N;i++){
        for(int j=0;j<N;j++)
        if(i==j)
            std::cout<<"10"<<" ";
        else if(i-j==1 || j-i==1)
            std::cout<<"1"<<" ";
        else 
            std::cout<<"0"<<" ";
        std::cout<<std::endl<<std::endl;
    }
    for(int i=0;i<N;i++){
        std::cout<<B[i]<<" ";
    }
    std::cout<<std::endl;
    return 0;
}